package com.hwua.domain;

import java.io.Serializable;

/**
 * 汽车类
 * @author Administrator
 */
public class Car implements Serializable {
    /**
     * 汽车编号
     */
    private int carId;
    /**
     * 车牌号
     */
    private String carNumber;
    /**
     * 汽车名称:朗逸，速腾，卡罗拉，凯美瑞
     */
    private String carName;
    /**
     * 备注  自动档1.6T
     */
    private String carRemark;
    /**
     * 品牌id
     */
    private int brandId;
    /**
     * 品牌
     */
    private String brand;
    /**
     * 类型id
     */
    private int typeId;
    /**
     * 类型：紧凑型、舒适型、精英型、SUV
     */
    private String type;
    /**
     * 颜色
     */
    private String color;
    /**
     * 每日租金  元/天
     */
    private double dailyRent;
    /**
     * 总租金
     */
    private double payment;
    /**
     * 汽车价格
     */
    private long price;
    /**
     * 状态，是否可租
     */
    private int rentStatus;
    /**
     * 状态，是否上架
     */
    private int putAwayStatus;

    /**
     * 借出时间
     */
    private String rentTime;

    /**
     * 归还时间
     */
    private String returnTime;

    /**
     * 租车记录表id
     */
    private int recordId;

    /**
     * 用户名
     */
    private String userName;
    public Car() {
    }

    public Car(int carId, String carNumber, String carName, String carRemark, int brandId, String brand, int typeId,
               String type, String color, double dailyRent, double payment, long price, int rentStatus, int putAwayStatus,
               String rentTime, String returnTime, int recordId, String userName) {
        this.carId = carId;
        this.carNumber = carNumber;
        this.carName = carName;
        this.carRemark = carRemark;
        this.brandId = brandId;
        this.brand = brand;
        this.typeId = typeId;
        this.type = type;
        this.color = color;
        this.dailyRent = dailyRent;
        this.payment = payment;
        this.price = price;
        this.rentStatus = rentStatus;
        this.putAwayStatus = putAwayStatus;
        this.rentTime = rentTime;
        this.returnTime = returnTime;
        this.recordId = recordId;
        this.userName = userName;
    }

    public int getCarId() {
        return carId;
    }

    public void setCarId(int carId) {
        this.carId = carId;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }

    public String getCarRemark() {
        return carRemark;
    }

    public void setCarRemark(String carRemark) {
        this.carRemark = carRemark;
    }

    public int getBrandId() {
        return brandId;
    }

    public void setBrandId(int brandId) {
        this.brandId = brandId;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getDailyRent() {
        return dailyRent;
    }

    public void setDailyRent(double dailyRent) {
        this.dailyRent = dailyRent;
    }

    public double getPayment() {
        return payment;
    }

    public void setPayment(double payment) {
        this.payment = payment;
    }

    public long getPrice() {
        return price;
    }

    public void setPrice(long price) {
        this.price = price;
    }

    public int getRentStatus() {
        return rentStatus;
    }

    public void setRentStatus(int rentStatus) {
        this.rentStatus = rentStatus;
    }

    public int getPutAwayStatus() {
        return putAwayStatus;
    }

    public void setPutAwayStatus(int putAwayStatus) {
        this.putAwayStatus = putAwayStatus;
    }

    public String getRentTime() {
        return rentTime;
    }

    public void setRentTime(String rentTime) {
        this.rentTime = rentTime;
    }

    public String getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(String returnTime) {
        this.returnTime = returnTime;
    }

    public int getRecordId() {
        return recordId;
    }

    public void setRecordId(int recordId) {
        this.recordId = recordId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "Car{" +
                "carId=" + carId +
                ", carNumber='" + carNumber + '\'' +
                ", carName='" + carName + '\'' +
                ", carRemark='" + carRemark + '\'' +
                ", brandId=" + brandId +
                ", brand='" + brand + '\'' +
                ", typeId=" + typeId +
                ", type='" + type + '\'' +
                ", color='" + color + '\'' +
                ", dailyRent=" + dailyRent +
                ", payment=" + payment +
                ", price=" + price +
                ", rentStatus=" + rentStatus +
                ", putAwayStatus=" + putAwayStatus +
                ", rentTime='" + rentTime + '\'' +
                ", returnTime='" + returnTime + '\'' +
                ", recordId=" + recordId +
                ", userName='" + userName + '\'' +
                '}';
    }
}
